home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
mint
/
mint104s.zoo
/
mint.src
/
asmtab.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-03-08
|
32KB
|
1,180 lines
/* A Bison parser, made from asm.y */
#define YYBISON 1 /* Identify Bison output. */
#define WORD 258
#define WHITESP 259
#define EOLN 260
#define STRING 261
#define DEFINECMD 262
#define INCLUDECMD 263
#define IFDEFCMD 264
#define IFNDEFCMD 265
#define ELSECMD 266
#define ENDIFCMD 267
#line 3 "asm.y"
#define YYSTYPE char *
#include "asmtrans.h"
#ifndef YYLTYPE
typedef
struct yyltype
{
int timestamp;
int first_line;
int first_column;
int last_line;
int last_column;
char *text;
}
yyltype;
#define YYLTYPE yyltype
#endif
#ifndef YYSTYPE
#define YYSTYPE int
#endif
#include <stdio.h>
#ifndef __STDC__
#define const
#endif
#define YYFINAL 87
#define YYFLAG -32768
#define YYNTBASE 25
#define YYTRANSLATE(x) ((unsigned)(x) <= 267 ? yytranslate[x] : 35)
static const char yytranslate[] = { 0,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 15, 22, 2, 2, 2, 16,
17, 23, 18, 13, 19, 2, 24, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 14, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 20, 2, 21, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 1, 2, 3, 4, 5,
6, 7, 8, 9, 10, 11, 12
};
#if YYDEBUG != 0
static const short yyprhs[] = { 0,
0, 1, 4, 6, 9, 12, 16, 21, 26, 33,
40, 45, 50, 53, 56, 59, 64, 68, 74, 76,
80, 82, 85, 87, 90, 94, 99, 104, 109, 114,
121, 128, 130, 134, 137, 139, 142, 144, 146, 148
};
#endif
static const short yyrhs[] = { -1,
25, 26, 0, 5, 0, 30, 5, 0, 27, 5,
0, 30, 27, 5, 0, 8, 4, 6, 5, 0,
8, 4, 3, 5, 0, 7, 4, 3, 4, 6,
5, 0, 7, 4, 3, 4, 31, 5, 0, 9,
4, 3, 5, 0, 10, 4, 3, 5, 0, 11,
5, 0, 12, 5, 0, 4, 29, 0, 4, 29,
4, 28, 0, 3, 4, 29, 0, 3, 4, 29,
4, 28, 0, 31, 0, 31, 13, 28, 0, 3,
0, 3, 14, 0, 32, 0, 15, 32, 0, 16,
32, 17, 0, 16, 32, 17, 18, 0, 19, 16,
32, 17, 0, 32, 16, 32, 17, 0, 16, 32,
17, 3, 0, 32, 16, 32, 13, 32, 17, 0,
32, 20, 32, 14, 32, 21, 0, 33, 0, 33,
34, 32, 0, 19, 32, 0, 3, 0, 22, 3,
0, 18, 0, 19, 0, 23, 0, 24, 0
};
#if YYDEBUG != 0
static const short yyrline[] = { 0,
22, 23, 26, 29, 30, 31, 33, 34, 35, 37,
39, 40, 41, 42, 45, 46, 49, 50, 55, 56,
60, 63, 65, 66, 67, 68, 69, 70, 71, 72,
74, 78, 79, 80, 82, 83, 86, 87, 88, 89
};
static const char * const yytname[] = { "$","error","$illegal.","WORD","WHITESP",
"EOLN","STRING","DEFINECMD","INCLUDECMD","IFDEFCMD","IFNDEFCMD","ELSECMD","ENDIFCMD",
"','","':'","'#'","'('","')'","'+'","'-'","'{'","'}'","'$'","'*'","'/'","input",
"line","opline","ops","opcode","label","operand","basic","basexpr","op",""
};
#endif
static const short yyr1[] = { 0,
25, 25, 26, 26, 26, 26, 26, 26, 26, 26,
26, 26, 26, 26, 27, 27, 27, 27, 28, 28,
29, 30, 31, 31, 31, 31, 31, 31, 31, 31,
31, 32, 32, 32, 33, 33, 34, 34, 34, 34
};
static const short yyr2[] = { 0,
0, 2, 1, 2, 2, 3, 4, 4, 6, 6,
4, 4, 2, 2, 2, 4, 3, 5, 1, 3,
1, 2, 1, 2, 3, 4, 4, 4, 4, 6,
6, 1, 3, 2, 1, 2, 1, 1, 1, 1
};
static const short yydefact[] = { 1,
0, 0, 0, 3, 0, 0, 0, 0, 0, 0,
2, 0, 0, 0, 22, 21, 15, 0, 0, 0,
0, 13, 14, 5, 0, 4, 0, 17, 0, 0,
0, 0, 0, 0, 6, 0, 35, 0, 0, 0,
0, 16, 19, 23, 32, 0, 8, 7, 11, 12,
18, 0, 24, 0, 0, 34, 36, 0, 0, 0,
37, 38, 39, 40, 0, 0, 0, 25, 0, 20,
0, 0, 33, 9, 10, 29, 26, 27, 0, 28,
0, 0, 0, 30, 31, 0, 0
};
static const short yydefgoto[] = { 1,
11, 12, 42, 17, 13, 43, 44, 45, 65
};
static const short yypact[] = {-32768,
47, 1, 3,-32768, 44, 49, 56, 57, 58, 59,
-32768, 60, 8, 3,-32768,-32768, 62, 64, 30, 65,
66,-32768,-32768,-32768, 67,-32768, 68, 70, 13, 71,
72, 73, 74, 75,-32768, 13,-32768, 27, 27, 15,
69,-32768, 63, -12, 21, 4,-32768,-32768,-32768,-32768,
-32768, 27,-32768, 45, 27,-32768,-32768, 13, 27, 27,
-32768,-32768,-32768,-32768, 27, 76, 77, 6, 53,-32768,
25, 78,-32768,-32768,-32768,-32768,-32768,-32768, 27,-32768,
27, 79, 80,-32768,-32768, 83,-32768
};
static const short yypgoto[] = {-32768,
-32768, 81, -33, 84,-32768, 38, -38,-32768,-32768
};
#define YYLAST 101
static const short yytable[] = { 53,
54, 56, 51, 59, 14, 16, 37, 60, 76, 66,
25, 3, 26, 56, 15, 37, 69, 37, 38, 39,
71, 72, 40, 77, 70, 41, 73, 38, 39, 37,
55, 40, 31, 52, 41, 32, 41, 79, 61, 62,
82, 80, 83, 63, 64, 52, 86, 18, 41, 2,
3, 4, 19, 5, 6, 7, 8, 9, 10, 20,
21, 68, 22, 23, 24, 29, 30, 33, 34, 78,
14, 57, 35, 36, 46, 58, 47, 48, 49, 50,
74, 75, 87, 67, 0, 0, 0, 0, 0, 0,
0, 81, 0, 27, 0, 84, 0, 28, 0, 0,
85
};
static const short yycheck[] = { 38,
39, 40, 36, 16, 4, 3, 3, 20, 3, 6,
3, 4, 5, 52